<template>
  <div id="nav">
    <!-- 一级路由挂载点 -->
    <router-view></router-view>
    <!-- <h1>{{$store.state.user.profile.token}}</h1> -->
    <!-- <button @click="$store.commit('user/setToken',Math.random()*100)">修改</button> -->
  </div>
</template>

<script>
export default {
  created () {
    // console.log(this.$store, this.$store.state.user.profile.token)
  },
  updated () {
    // console.log(this.$store.state.user.profile.token)
  }
}
</script>

<style lang="less">

</style>
